package com.yygo.dao;

import com.yygo.model.LoanRequest;
import com.yygo.model.MaterialAudit;
import com.yygo.model.User;
import org.displaytag.properties.SortOrderEnum;

import java.util.Date;
import java.util.List;

/**
 * Created by tiansha on 2015/11/20.
 */
public interface MaterialAuditDao extends GenericDao<MaterialAudit, Long> {

    int getSendLoanRequestCount(User user, String status, Date date, String number, String name, String shipNumber);
    List<LoanRequest> searchSendLoanRequests(User user, String status, Date date, String number, String name,String shipNumber, int firstResult, int maxResults, SortOrderEnum sortDirection, String sortCriterion);

    int getReceiveLoanRequestCount(User user, String shipNumber);
    List<LoanRequest> searchReceiveLoanRequests(User user, String shipNumber, int firstResult, int maxResults, SortOrderEnum sortDirection, String sortCriterion);

    int getAuditLoanRequestCount(User user, String number);
    List<LoanRequest> searchAuditLoanRequests(User user, String number, int firstResult, int maxResults, SortOrderEnum sortDirection, String sortCriterion);

    int getPrintLoanRequestCount(User user, String number);
    List<LoanRequest> searchPrintLoanRequests(User user, String number, int firstResult, int maxResults, SortOrderEnum sortDirection, String sortCriterion);


}
